<div id="thankswinnws">
	<p id="winnws_note">This application was designed and created by Greg Winn [winn.ws], if you get a chance stop by and pay a visit!</p>
</div>
<?php
if (Haswebsitename() == '') { 
?>

<h1 id="sitename" onclick="new Effect.Fade(this); new Effect.Appear('entersitename')">Winn Guestbook Admin <?=$version;?> <small>edit</small></h1>
<h1 style="display:none;" id="entersitename"><small>Address:</small><input value="http://" id="site_add" /> <small>Name:</small><input id="site_name" /> <a onclick="new Ajax.Updater('sitename','class/adminfunction.php',{ method:'get', parameters: {method:'site', sitename: document.getElementById('site_name').value, siteadd: document.getElementById('site_add').value} }); new Effect.Fade('entersitename'); new Effect.Appear('sitename')" href="javascript://">Save</a></h1>

<?php
}else{ 
?>

<h1 id="sitename" onclick="new Effect.Fade(this); new Effect.Appear('entersitename')"><?php echo Haswebsitename(); ?> <small>edit</small></h1>
<h1 style="display:none;" id="entersitename"><small>Address:</small><input value="<?php echo SiteAddress(); ?>" id="site_add" /> <small>Name:</small><input value="<?php echo SiteName();?>" id="site_name" /> <a onclick="new Ajax.Updater('sitename','class/adminfunction.php',{ method:'get', parameters: {method:'site', sitename: document.getElementById('site_name').value, siteadd: document.getElementById('site_add').value} }); new Effect.Fade('entersitename'); new Effect.Appear('sitename')" href="javascript://">Save</a></h1>

<?php } ?>
